文章目录
  1. 1. UMSNSService_UMSNSLibrary.a for architecture armv7s

UMSNSService_UMSNSLibrary.a for architecture armv7s

xcode在IOS Device 模式时 build 出现以下错误的解决方案:

\

\

\

Ld
/Users/huguiqi/Library/Developer/Xcode/DerivedData/JinJiang-cmufbfphgdusqodxjeerrckbzyip/Build/Intermediates/JinJiang.build/Distribution-iphoneos/JinJiang.build/Objects-normal/armv7s/JinJiang
normal armv7s

    cd

/Users/huguiqi/Public/workspace/app/ios/iphone/tags/t012_R128_20121206

    setenv IPHONEOS_DEPLOYMENT_TARGET 4.3

    setenv PATH
“/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin”

   
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-arch armv7s -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk
-L/Users/huguiqi/Library/Developer/Xcode/DerivedData/JinJiang-cmufbfphgdusqodxjeerrckbzyip/Build/Products/Distribution-iphoneos
-L/Users/huguiqi/Public/workspace/app/ios/iphone/tags/t012_R128_20121206/UMSNSService
-L/Users/huguiqi/Public/workspace/app/ios/iphone/tags/t012_R128_20121206/Kal
-L/Users/huguiqi/Public/workspace/app/ios/iphone/tags/t012_R128_20121206
-F/Users/huguiqi/Library/Developer/Xcode/DerivedData/JinJiang-cmufbfphgdusqodxjeerrckbzyip/Build/Products/Distribution-iphoneos
-filelist
/Users/huguiqi/Library/Developer/Xcode/DerivedData/JinJiang-cmufbfphgdusqodxjeerrckbzyip/Build/Intermediates/JinJiang.build/Distribution-iphoneos/JinJiang.build/Objects-normal/armv7s/JinJiang.LinkFileList
-dead_strip -lxml2 -ObjC -fobjc-link-runtime -miphoneos-version-min=4.3
/Users/huguiqi/Library/Developer/Xcode/DerivedData/JinJiang-cmufbfphgdusqodxjeerrckbzyip/Build/Products/Release-iphoneos/libKalLibrary.a
-weak_framework CoreTelephony -framework SystemConfiguration -lz
-framework CoreText -framework AudioToolbox -framework Security
-weak_framework MessageUI -framework CFNetwork -framework
MobileCoreServices -framework QuartzCore -framework Foundation
-framework UIKit -framework MapKit -framework CoreLocation -framework
CoreGraphics
/Users/huguiqi/Public/workspace/app/ios/iphone/tags/t012_R128_20121206/UMSNSService/UMSNSLibrary.a
-lAppMeasurement -o
/Users/huguiqi/Library/Developer/Xcode/DerivedData/JinJiang-cmufbfphgdusqodxjeerrckbzyip/Build/Intermediates/JinJiang.build/Distribution-iphoneos/JinJiang.build/Objects-normal/armv7s/JinJiang

\

ld: warning: ignoring file
/Users/huguiqi/Library/Developer/Xcode/DerivedData/JinJiang-cmufbfphgdusqodxjeerrckbzyip/Build/Products/Release-iphoneos/libKalLibrary.a,
file was built for archive which is not the architecture being linked
(armv7s):
/Users/huguiqi/Library/Developer/Xcode/DerivedData/JinJiang-cmufbfphgdusqodxjeerrckbzyip/Build/Products/Release-iphoneos/libKalLibrary.a

ld: file is universal (3 slices) but does not contain a(n) armv7s slice:
/Users/huguiqi/Public/workspace/app/ios/iphone/tags/t012_R128_20121206/UMSNSService/UMSNSLibrary.a
for architecture armv7s

clang: error: linker command failed with exit code 1 (use -v to see
invocation)

\

(null): Ignoring file
/Users/huguiqi/Library/Developer/Xcode/DerivedData/JinJiang-cmufbfphgdusqodxjeerrckbzyip/Build/Products/Release-iphoneos/libKalLibrary.a,
file was built for archive which is not the architecture being linked
(armv7s):
/Users/huguiqi/Library/Developer/Xcode/DerivedData/JinJiang-cmufbfphgdusqodxjeerrckbzyip/Build/Products/Release-iphoneos/libKalLibrary.a

\

\

\

\

(null): Ignoring file
/Users/huguiqi/Library/Developer/Xcode/DerivedData/JinJiang-cmufbfphgdusqodxjeerrckbzyip/Build/Products/Release-iphoneos/libKalLibrary.a,
file was built for archive which is not the architecture being linked
(armv7s):
/Users/huguiqi/Library/Developer/Xcode/DerivedData/JinJiang-cmufbfphgdusqodxjeerrckbzyip/Build/Products/Release-iphoneos/libKalLibrary.a

\

\

\

\

(null): File is universal (3 slices) but does not contain a(n) armv7s
slice:
/Users/huguiqi/Public/workspace/app/ios/iphone/tags/t012_R128_20121206/UMSNSService/UMSNSLibrary.a
for architecture armv7s

\

(null): Linker command failed with exit code 1 (use -v to see
invocation)

\

\

目前有两种方式解决以上问题:

1,

在如下项中选择Build Active Architecture
Only项设置值为YES,然后保存再build,完美通过

\

\

\

\

\

\

\

2,修改它的Architectures 项的值,添加armv7 armv6这项值 

\

\

\

\

文章目录
  1. 1. UMSNSService_UMSNSLibrary.a for architecture armv7s